package OOP.day10.homework.AnimalDemo05;

public class Chick extends Animal {
    //构造器
    public Chick() {
    }

    public Chick(String name, int age, String color) {
        super(name, age, color);
    }

    //重写父类的方法

    @Override
    public void eat() {
        System.out.println("小鸡吃虫");
    }

    public void layeggs() {
        System.out.println("小鸡" + name + "下蛋");
    }
}
